from moocxing.package import MOOCXING

MX = MOOCXING.INIT()

def recordSTT():
    MX.media.record()
    return MX.speech.STT(_print=True)

def TTSPlay(text):
    MX.speech.TTS(text)
    MX.media.play()
    
result = recordSTT()
if "你好" in result:
    TTSPlay("你好呀，很高兴认识你。")